<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible"content="IE=8"><!--以IE8模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=7"><!--以IE7模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE">

	<title>后台角色管理</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/manage.css" >
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/role_add.css" >
</head>

<body>
	<div style="height:150px;border: 1px solid  blue">
		<table class="addForm">
			<tr>
				<td>交易状态：<?php echo $result['trade_name'];?></td>
			</tr>
			<tr>
				<td>服务价格：<?php echo $result['trade_allmoney'];?></td>
			</tr>
			<tr>
				<td>付款状态：<?php echo $result['name'];?></td>
			</tr>
			<?php
				if ($result['trade_cancelask_time'] != 0) 
				{
			?>
			<tr>
				<td>取消申请时间：<?php echo date('Y-m-d H:i:s', $result['trade_cancelask_time']);?></td>
			</tr>
			<?php
				}
			?>
		</table>
	</div>

	<div id="canclereasondiv" style="display:none">
		<table class="addForm">
			<tr>
				<td>输入取消原因</td>
				<td ><textarea rows="5" id="reasontext" name="reasontext"></textarea></td>
				<td><input type="button" value="确定" id="canclereason"></td>
			</tr>
		</table>
	</div>

	<div style="padding:0 200px">
		<table class="addForm" style="float:left;width:400px;magrin-left:150px;">
			<tr>
				<th>交易编码</th>
				<td><input type="text" readonly="readonly" id="tradecode" value=<?php echo $result['trade_contractnumber'];?>></td>
			</tr>

			<tr>
				<th>客户姓名</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['cust_name'];?>></td>
			</tr>

			<tr>
				<th>客户电话</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['cust_phone']; ?>></td>
			</tr>

			<tr>
				<th>客户利率</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['trade_rate'];?>></td>
			</tr>

			<tr>
				<th>服务价格</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['trade_allmoney'];?>></td>
			</tr>

			<tr>
				<th>首付金额</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['trade_fristpay'];?>></td>
			</tr>

			<tr>
				<th>分期金额</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['trade_allmoney']-$result['trade_fristpay'];?>></td>
			</tr>

			<tr>
				<th>创建时间</th>
				<td><input type="text" readonly="readonly" value=<?php echo date('Y-m-d H:m:s',$result['trade_addtime']); ?>></td>
			</tr>

			<tr>
				<th>员工姓名</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['person_name'];?>></td>
			</tr>

			<tr>
				<th>员工电话</th>
				<td><input type="text" readonly="readonly" value=<?php echo $result['person_phone'];?>></td>
			</tr>

			<tr>
				<th></th>
				<td>
					<input style="width: 100px;background-color: rgb(66, 139, 202);" type="button" class="save"  value="返回" onclick='back();'>
				</td>
			</tr>
		</table>

		<div style="float:right;width:250px;magrin-right:150px;">
			交易二维码：<img src="<?php echo '../'.$result['trade_orimage'];?>" name='tradeimg' id='tradeimg'>
			<?php echo $result['trade_orimage'];?>
		</div>
	</div>

	<script TYPE="text/javascript" src="__PUBLIC__/js/jquery-1.8.0.min.js"></script>
	<script TYPE="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<script TYPE="text/javascript" src="__PUBLIC__/js/ajax.js"></script>
	<script type="text/javascript">
		function back() 
		{
			window.parent.removeTab("订单详情","订单管理","../../order/order/order_list");
		}
	</script>
</body>
</html>